package HF;

import java.util.ArrayList;
import java.util.Collection;

public class Symptoms{

	public Collection<String> symptoms;
	
	public Symptoms(){
		this.symptoms = new ArrayList<String>();
	}
	
	public Symptoms(Collection<String> symptoms){ 
		this.symptoms=symptoms;
	}
	public Collection<String> getSymptoms() {
		return symptoms;
	}
	
	public void setSymptoms(Collection<String> symptoms) {
	    this.symptoms = symptoms;
	}
	
	public boolean inSymptoms(String symptom) {
		if (symptoms.contains(symptom))
			return true;		
		return false;
	}
	
	
	public void removeFromSymptoms (String symptom) {
		symptoms.remove(symptom);
	}
	
	public void addToSymptoms(String symptom) {
		symptoms.add(symptom);
		
	}
	public String toString() {
		return symptoms+",";
	}
}
